package com.lingnan.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import jakarta.validation.constraints.*;

import java.util.Date;


@Data
public class Blacklist {
    @TableId(type = IdType.AUTO)
    private Long id;

    @NotNull(message = "操作方ID不能为空")
    private Long sourceId;

    @NotNull(message = "被拉黑方ID不能为空")
    private Long targetId;

    @Min(value = 0, message = "被拉黑类型必须为0或1")
    @Max(value = 1, message = "被拉黑类型必须为0或1")
    private Integer targetType;

    private String reason;

    private Boolean isPublic = false;

    private Date createdAt;

    @Min(value = 0, message = "状态必须为0或1")
    @Max(value = 1, message = "状态必须为0或1")
    private Integer status = 0;

    private Long updateId;
}